package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.MallConfigEntity;
import yf.mall.vo.MallConfigVo;

                
/**
 * 商城配置实体
 * 表名 mall_config
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sat Nov 27 11:15:02 CST 2021
 */
@Data
public class MallConfigDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //主键
            @ExcelProperty("主键")
            private Long id;
        
                        //开始时间
            @ExcelProperty("开始时间")
            private Date starttime;
        
                        //结束时间
            @ExcelProperty("结束时间")
            private Date endtime;
        
                        //备用
            @ExcelProperty("备用")
            private String other;
        
    
    public MallConfigDown() {

    }

    public MallConfigDown(MallConfigVo vo) {
        MallConfigEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setStarttime(entity.getStartTime());
            
                                    this.setEndtime(entity.getEndTime());
            
                                    this.setOther(entity.getOther());
            
            }


}
